home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
allcrack
/
frmopts.frm
< prev
next >
Wrap
Text File
|
1999-10-05
|
2KB
|
73 lines
VERSION 5.00
Begin VB.Form Opts
BorderStyle = 1 'Fixed Single
Caption = " Options"
ClientHeight = 660
ClientLeft = 45
ClientTop = 330
ClientWidth = 2160
Icon = "FrmOpts.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 660
ScaleWidth = 2160
StartUpPosition = 3 'Windows Default
Begin VB.CommandButton Command1
Caption = "Save Changes"
Height = 240
Left = 480
TabIndex = 2
Top = 420
Width = 1215
End
Begin VB.CheckBox Check2
Caption = "Run AllAdvantage on load"
Height = 225
Left = 0
TabIndex = 1
Top = 225
Width = 2190
End
Begin VB.CheckBox Check1
Caption = "Load on Win Startup"
Height = 255
Left = 0
TabIndex = 0
Top = 0
Width = 1770
End
End
Attribute VB_Name = "Opts"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
If Check2.Value = 1 Then
Call SaveSetting("IE5 Sim", "IE5 Sim", "1", "1")
End If
If Check1.Value = 1 Then
Call SetStringValue("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run", "IE5 Sim", App.Path & "\" & App.EXEName & ".exe")
End If
Me.Hide
End Sub
Private Sub Form_Load()
Dim retn As String
retn = GetStringValue("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run", "IE5 Sim")
If retn = "Error" Then
Check1.Value = 0
ElseIf GetStringValue("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run", "IE5 Sim") = App.Path & App.EXEName & ".exe" Then
Check1.Value = 1
Else
Call SetStringValue("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run", "IE5 Sim", App.Path & "\" & App.EXEName & ".exe")
Check1.Value = 1
End If
retn = GetSetting("IE5 Sim", "IE5 Sim", "1")
If retn = "1" Then
Check2.Value = 1
Else
Check2.Value = 0
End If
End Sub